package com.wtwd.campus.h5_manager.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wtwd.campus.h5_manager.entity.DeviceLog;
import com.wtwd.campus.h5_manager.entity.MessageTypeListVo;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author mjy
 * @since 2022-03-14
 */
public interface DeviceLogService {

    Integer addDeviceLog(DeviceLog deviceLog);

    /**
     * 根据设备选择对应库查询
     *
     * @param startTime
     * @param endTime
     * @param imei
     * @param massageType
     * @param type
     * @param page
     * @return
     */
    IPage<DeviceLog> queryDeviceLogConditions(Long startTime, Long endTime, String imei, String massageType, String type, Page<DeviceLog> page);

    MessageTypeListVo getDeviceMessageType(String type);

    Integer deleteDeviceLogByTime(long time);
}
